﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace SageKing.Core.Extensions;

public static class FuncToExpressExts
{
    public static Expression<Func<TEntity, bool>> ToExpression<TEntity>(this Func<TEntity, bool> func)
    {
        return x => func(x);
    }
}
